import request from '@/utils/request'

// 查询非遗文学内容汇总列表
export function listContent(query) {
  return request({
    url: '/books/content/list',
    method: 'get',
    params: query
  })
}

// 查询非遗文学内容汇总详细
export function getContent(literaryContentId) {
  return request({
    url: '/books/content/' + literaryContentId,
    method: 'get'
  })
}

// 新增非遗文学内容汇总
export function addContent(data) {
  return request({
    url: '/books/content',
    method: 'post',
    data: data
  })
}

// 修改非遗文学内容汇总
export function updateContent(data) {
  return request({
    url: '/books/content',
    method: 'put',
    data: data
  })
}

// 删除非遗文学内容汇总
export function delContent(literaryContentId) {
  return request({
    url: '/books/content/' + literaryContentId,
    method: 'delete'
  })
}
